# -*- coding:UTF-8 -*-#

'''
@author: qianwp
'''

class ServerSettings:
    serverId = 0

class RedisSettings:
    host = '127.0.0.1'
    port = 6379
    db = 0
    pipeline = False
    
class LogSettings:
    logroot = 'E:/logs/'
    console = True
    period = 5
    debug = True
    
class DBSettings:
    host='127.0.0.1'
    user='root'
    passwd='123456'
    db='popcan'
    mincached=5
    maxcached=100
    maxusage=1000
    
class CacheSettings:
    servers = '127.0.0.1:11211'
    
class SessionSettings:
    SESSION_KEY_PREFIX = 'session#%s'
    
class CustomerSettings:
    CUSTOMER_KEY_PREFIX = 'customer#%s'
    
class DesignerSettings:
    DESIGNER_KEY_PREFIX = 'designer#%s'

class AlbumSettings:
    ALBUM_KEY_PREFIX = 'album#%s'
    ALBUM_INDEX_KEY_PREFIX = 'album_index#%s'
    ALBUM_DESC_KEY_PREFIX = 'album_desc#%s'

class CompositSettings:
    COMPOSIT_KEY_PREFIX = 'composit#%s'
    COMPOSIT_INDEX_KEY_PREFIX = 'composit_index#%s'

class PhotoSettings:
    PHOTO_KEY_PREFIX = 'photo#%s'
    PHOTO_INDEX_KEY_PREFIX = 'photo_index#%s'
    
class CommentSettings:
    COMMENT_KEY_PREFIX = 'comment#%s'
    COMMENT_INDEX_KEY_PREFIX = 'comment_index#%s'